package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.AdChannel;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {
    /**
     * 获取频道列表
     * @return
     */
    ResponseResult channels();

    //删除频道
    ResponseResult deleteChannel(Integer id);

    //分页查询
    ResponseResult channelsList(ChannelDto dto);

    //添加
    ResponseResult save(AdChannel dto);

    //更新
    ResponseResult update(AdChannel adChannel);
}
